package cn.frank.domain.mysql;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Frank
 * @date 05-17
 */
public class SalesDatas implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long salesId;
    private String createBy;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 父菜单名称 */
    private String parentName;

    /** 父菜单ID */
    private Long parentId;
    /** 数据编码 */
    private String statCode;
    /** 单位说明 */
    private String unitName;
    private String statName;
    /** 煤种类型 */
    private String salesType;

    public String getStatName() {
        return statName;
    }

    public void setStatName(String statName) {
        this.statName = statName;
    }

    /** 产值 */
    private BigDecimal salesValue;

    /** 销售单位 */
    private String salesDept;

    private Integer salesYear;


    private Integer salesMonth;
    private Integer salesDay;
    /** 统计时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date statTime;
    /**状态*/
    private Integer status;

    /** 备注 */
    private String remark;
    /** 子部门 */
    private List<?> children = new ArrayList<>();

    public SalesDatas() {
    }

    public SalesDatas( String statName,
                      String salesType, BigDecimal salesValue, String salesDept, int salesYear, int salesMonth) {

        this.statName = statName;
        this.salesType = salesType;
        this.salesValue = salesValue;
        this.salesDept = salesDept;
        this.salesYear = salesYear;
        this.salesMonth = salesMonth;
    }

    @Override
    public String toString() {
        return "SalesDatas{" +
                "createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", delFlag='" + delFlag + '\'' +
                ", parentName='" + parentName + '\'' +
                ", parentId=" + parentId +
                ", statCode='" + statCode + '\'' +
                ", unitName='" + unitName + '\'' +
                ", statName='" + statName + '\'' +
                ", salesType='" + salesType + '\'' +
                ", salesValue=" + salesValue +
                ", salesDept='" + salesDept + '\'' +
                ", salesYear=" + salesYear +
                ", salesMonth=" + salesMonth +
                ", salesDay=" + salesDay +
                ", statTime=" + statTime +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", children=" + children +
                '}';
    }

    public List<?> getChildren() {
        return children;
    }

    public void setChildren(List<?> children) {
        this.children = children;
    }

    public Long getSalesId() {
        return salesId;
    }

    public void setSalesId(Long salesId) {
        this.salesId = salesId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getStatCode() {
        return statCode;
    }

    public void setStatCode(String statCode) {
        this.statCode = statCode;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getSalesType() {
        return salesType;
    }

    public void setSalesType(String salesType) {
        this.salesType = salesType;
    }

    public BigDecimal getSalesValue() {
        return salesValue;
    }

    public void setSalesValue(BigDecimal salesValue) {
        this.salesValue = salesValue;
    }

    public String getSalesDept() {
        return salesDept;
    }

    public void setSalesDept(String salesDept) {
        this.salesDept = salesDept;
    }

    public int getSalesYear() {
        return salesYear;
    }

    public void setSalesYear(int salesYear) {
        this.salesYear = salesYear;
    }

    public Integer getSalesMonth() {
        return salesMonth;
    }

    public void setSalesMonth(int salesMonth) {
        this.salesMonth = salesMonth;
    }

    public int getSalesDay() {
        return salesDay;
    }

    public void setSalesDay(int salesDay) {
        this.salesDay = salesDay;
    }

    public Date getStatTime() {
        return statTime;
    }

    public void setStatTime(Date statTime) {
        this.statTime = statTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
